import request from '@/utils/request'

// 查询里程碑列表
export function listMilestone(query) {
  return request({
    url: '/arvin/milestone/list',
    method: 'get',
    params: query
  })
}

// 查询里程碑详细
export function getMilestone(name) {
  return request({
    url: '/arvin/milestone/' + name,
    method: 'get'
  })
}

// 新增里程碑
export function addMilestone(data) {
  return request({
    url: '/arvin/milestone',
    method: 'post',
    data: data
  })
}

// 修改里程碑
export function updateMilestone(data) {
  return request({
    url: '/arvin/milestone',
    method: 'put',
    data: data
  })
}

// 删除里程碑
export function delMilestone(name) {
  return request({
    url: '/arvin/milestone/' + name,
    method: 'delete'
  })
}
